<#ibiztemplate>
TARGET=PSAPPVIEWCTRL_APPMENU
</#ibiztemplate>
# <#if item.getLogicName()?default("")?trim?length gt 1>${item.getLogicName()}<#else>${item.getName()}</#if>


<#macro buildTree args idx>
<#list args as menuitem>
<#if menuitem.getItemType()=='MENUITEM'>
<#list 1..idx as i>*</#list> <#if menuitem.getCaption()?default("")?trim?length gt 1>${menuitem.getCaption()}<#else>${menuitem.getName()}</#if>
<#if menuitem.getPSAppMenuItems()??>
<@buildTree args=menuitem.getPSAppMenuItems() idx=idx+1 />
</#if>
</#if>
</#list>
</#macro>

{% plantuml %}
@startmindmap
* <#if item.getLogicName()?default("")?trim?length gt 1>${item.getLogicName()}<#else>${item.getName()}</#if>
<@buildTree args=item.getPSAppMenuItems() idx=2 />
@endmindmap
{% endplantuml %}


<#macro buildTable args>
<#list args as menuitem>
<#if menuitem.getItemType()=='MENUITEM'>
|<#if menuitem.getCaption()?default("")?trim?length gt 1>${menuitem.getCaption()}<#else>${menuitem.getName()}</#if>|<#if menuitem.getPSAppFunc()??><#if menuitem.getPSAppFunc().getPSAppView()??>[查看功能](func/${menuitem.getPSAppFunc().getPSAppView().getCodeName()}.md)<#else>-</#if><#else>-</#if>|
<#if menuitem.getPSAppMenuItems()??>
<@buildTable args=menuitem.getPSAppMenuItems() />
</#if>
</#if>
</#list>
</#macro>


| 菜单项      |  功能  |
| --------   |   ----  |
<#if item.getPSAppMenuItems()??>
<@buildTable args=item.getPSAppMenuItems() />
</#if>

